package com.mgg.user.enums;

import com.mgg.common.enums.BaseResult;

/**
 * @Author: lijun
 * @Date: 2018-09-01 10:22:00
 */
public enum UserResultEnum implements BaseResult{

    SUCCESS("100", "成功!"),
    PARAM_ERROR("001","参数验证失败!"),
    KEY_ERROR("002","密钥验证失败!"),
    SYSTEM_ERROR("005","系統错误"),
    UNAUTHORIZED("006","未登录授权"),

    USER_NOT_FIND("301","用户不存在"),
    USER_QEURY_CONDITION_ERROR("302","用户查询条件不能为空"),
    USER_FIND_ERROR("303","用户信息查询失败"),
    USER_ADD_ERROR("304","新增用户信息失败"),
    ACCESS_DENIED("305","权限不足，拒绝访问"),
    SHOP_NOT_FIND("306","店铺不存在"),
    SHOP_CODE_ERROR("307","邀请码错误,邀请码不存在"),
    SHOP_FIND_ERROR("308","店铺信息查询失败"),
    USER_ACCOUNT_ERROR("309","用户余额表不存在"),
    ACCOUNT_AMOUNT_NOT_ENOUGH("308","账户余额不足"),
    IMAGE_UPLOAD_ERROR("309","图片上传失败"),
    USER_WEIXIN_CONNECTED("310","账号已绑定微信"),
    WEIXIN_CONNECTED("311","微信已经被绑定"),
    USER_REGISTERD_ERROR("312","用户已注册"),
    WITHDRAWALS_FAIL("313","提现失败！{0}"),
    PHONE_REGISTED_ERROR("314","手机号已注册"),
    ACT_CODE_ERROR("315","激活码错误"),
    ACT_CODE_USED("316","激活码已使用"),
    ACT_USER_ERROR("317","激活号码已成为店主"),
    RIGIST_FAIL("318","注册失败"),
    ACTCODE_SEND_FAIL("319","激活码领取失败"),
    ;

    private String code;

    private String message;

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    UserResultEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }
}
